package webjoch.process.strategies.bosses;

import com.rsbuddy.script.methods.Players;
import com.rsbuddy.script.wrappers.Npc;

import webjoch.process.strategies.Boss;

public class IcyBones extends Boss {
    public final int[] bossID = {10046};
    
    //Possible unique objects:
    //51207
    
    /*
     * Recommened strategy:
     * Style = crush
     * Prayer = Protect from melee
     */
    
    @Override
    public boolean isValid() {
        return room.getNpc(bossID) != null;
        //TODO There are no unique items, so it just checks the NPC for now
    }

    @Override
    public BossType getBossType() {
        return BossType.ICY_BONES;
    }

    @Override
    public int loop() {
        Npc boss = room.getNpc(bossID);
        if (boss == null) {
            if (isFinished()) {
                System.out.println("Boss " + getBossType() + "is finished.");
            }
        }
        
        if (Players.getLocal().getInteracting() == null) {
            boss.interact("Attack");
            return 500;
        } else {
            return 50;
        }
    }

}
